/*
 * Log.cpp
 *
 * Created: 24-02-2013 13:42:54
 *  Author: Bootie
 */ 

#include "../Headers/Log.h"

Log::Log()
{
	level = ERROR;
	file = false;
}

Log::Log(Level inLevel, bool inFile)
{
	level = inLevel;
	file = inFile;
}

void Log::SetLevel(Level inLevel)
{
	level = inLevel;
}

void Log::LogIt(char* text, Level inLevel)
{
	if(level != OFF && level >= inLevel)
	{
		if(file == true)
		{
				
				//Filesystem write
		}
		else
		{
			//SendString(text);	//Uart write
		}
	}
}